Capital Contracts
Member Flow
Operator Flow
Actions
Quick Summary:
- Members can swap NXM/ETH through RAMM
- Operators manage large swaps through CoW Protocol
- Circuit breakers protect capital adequacy
1. Member Actions
- Swap NXM/ETH
- (1a)
Membercallsswapon RAMM - (1b)
RAMMvalidates swap conditions:- System not paused
- Swap not paused
- Valid deadline
- (1c)
RAMMexecutes swap with Pool - (1d)
Pooltriggers MCR update - (1e)
Pooltransfers swapped assets to member
- (1a)
2. Operator Actions
-
Place Order
- (1a)
OperatorcallsplaceOrderon SwapOperator - (1b)
SwapOperatorvalidates pre-swap conditions:- Token enabled status
- Balance limits
- Swap frequency
- Max fee and slippage
- (1c)
SwapOperatortransfers assets from Pool - (1d)
SwapOperatorsigns and submits CoW swap order - (1e)
CoW Settlementexecutes swap and returns assets to SwapOperator
- (1a)
-
Close Order
- (2a)
OperatorcallscloseOrderon SwapOperator - (2b)
SwapOperatorreturns assets to Pool
- (2a)
Notes
- Circuit breakers limit the amount of ETH/NXM that can be released through RAMM
- Swap frequency limits prevent rapid trading of assets
- MCR updates track capital adequacy after swaps